-
Notifications
You must be signed in to change notification settings - Fork 87
frost-rerandomized: change Randomizer generation #762
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…tments and not depend on serialization feature
a99ec60 to
ab8e2ef
Compare
frost-rerandomized/src/lib.rs
Outdated
| signing_commitments: &BTreeMap<Identifier<C>, SigningCommitments<C>>, | ||
| ) -> Result<(Self, Vec<u8>), Error<C>> { | ||
| // Generate a dummy scalar to get its encoded size | ||
| let one = <<C::Group as Group>::Field as Field>::zero(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this one and not zero?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. It is wrongly named, I think while writing I meant to actually generate a one (in parallel to the dummy element generation, which should not generate the identity), but a zero is OK for scalars. The same mistake happens elsewhere in the code. I fixed both in dab3f14
…change-randomizer-generation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #762 +/- ##
==========================================
- Coverage 77.45% 77.31% -0.15%
==========================================
Files 41 41
Lines 4503 4566 +63
==========================================
+ Hits 3488 3530 +42
- Misses 1015 1036 +21 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
...to take SigningCommitments and not depend on serialization feature.
This reflects the current state of zcash/zips#895
I created as a draft because it's probably better to wait for that to finish being reviewed and merged.
I ran the tests with
reddsa.